
function priceShow(){
	$('#prices a').click(function(){
		$(this).parent().addClass('active').siblings().removeClass('active');
	});
	$('#prices').height($('#prices li.active div.info').height());
};

 $(document).ready(function(){
	$('#userForm').submit(function(){
		var email = $("#mail");
		var name = $('#name');
		var phone = $('#phone');
		var res = true;

		if(email.val()=="Email Address")
		{
			email.css('border','solid 1px red');
			res = false;
		}else
		{
			email.css('border','solid 1px #545554');
		}
		
		if(name.val() =="Full Name")
		{
			name.css('border','solid 1px red');
			res = false;
		}else
		{
			name.css('border','solid 1px #545554');
		}
		
		if(phone.val() =="Contact Number")
		{
			phone.css('border','solid 1px red');
			res = false;
		}else
		{
			phone.css('border','solid 1px #545554');
		}
		
		return res;
	});
	
	$('#name').focus(function(){
		if($(this).val()=="Full Name")
			$('#name').val("");
	});
	$('#name').blur(function(){
		if($('#name').val()=="")
			$('#name').val("Full Name");
	});
	
	$('#mail').focus(function(){
		if($('#mail').val()=="Email Address")
			$('#mail').val("");
	});
	$('#mail').blur(function(){
		if($('#mail').val()=="")
			$('#mail').val("Email Address");
	});
	
	$('#phone').focus(function(){
		if($('#phone').val()=="Contact Number")
			$('#phone').val("");
	});
	$('#phone').blur(function(){
		if($('#phone').val()=="")
			$('#phone').val("Contact Number");
	});
	
	$('#message').focus(function(){
		if($('#message').val()=="MESSAGE")
			$('#message').val("");
	});
	$('#message').blur(function(){
		if($('#message').val()=="")
			$('#message').val("MESSAGE");
	});
 });